<template>
  <div class="grade">
    <topDiv>学分</topDiv>
    <div class="lei">
      <p>{{grade}}</p>
      <p>学分</p>
    </div>
  </div>
</template>
<script>
import { getUser } from "request/useData";
import { parseCookie } from "ulit/parse";
import topDiv from "components/share/mine/topDiv";
export default {
  data() {
    return {
      grade: null,
    };
  },
  components: {
    topDiv,
  },
  mounted() {
    getUser(parseCookie()).then((res) => {
      this.grade = res.data.credit;
    });
  },
};
</script>

<style lang="less" scoped>
.grade{
    .lei{
        font-size: 1.5rem;
        text-align: center;
        margin-top: 10rem;
    }
}
</style>